import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { HttpClient } from '@angular/common/http';


@Injectable({
    providedIn: 'root'
})
export class MemberService {

    private resourceUrl = 'api/members';

    constructor(private http: HttpClient) {}

    getMembers(game:String):Observable<any>{
        return this.http.get<any>(this.resourceUrl+"/"+game);
    }
    

}